#include "trace_processor.h"

trace_processor::trace_processor(unsigned int iq_size, unsigned int dispatch_width)
{
	this->issue_width = issue_width;

	/////////////////////////////////////////////////////////////
	// Execution Lanes.
	/////////////////////////////////////////////////////////////
	Execution_Lanes = new lane[issue_width];


	//Local Register File
	localRegisters = (unsigned long long *) malloc (LOCAl_TOTAL_REGS * sizeof(unsigned long long));
	completed = false;
	exception = false;
}

unsigned long long trace_processor::read(unsigned int local_reg)
{
	return localRegisters[local_reg];
}

void trace_processor::write(unsigned int phys_reg, unsigned long long value)
{
	localRegisters[phys_reg] = value;
}



